package com.spring.cloud.nacos.project.controller;

import com.spring.cloud.comment.entity.UserPO;
import com.spring.cloud.nacos.project.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {
    @Autowired
    private UserService userService;

    /**
      * @Date 2020/4/19 20:27
      * @Author wsh
      * @Desc 查询user
      */
    @GetMapping(value = "getUser")
    public List<UserPO> getUser(){
        return userService.list();
    }
}
